package com.firepongo.chaos.model.dto.page;

import com.firepongo.chaos.model.constant.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper =false)
@Accessors(chain = true)
@ApiModel(value = "分页对象", description = "")
public class PageQueryDto<T> implements Serializable {
    @ApiModelProperty(value = "第几页", example = "1")
    private Integer pageNum = Constants.DEFAULT_PAGE;
    @ApiModelProperty(value = "总条数", example = "10")
    private Integer pageSize = Constants.DEFAULT_PAGE_SIZE;
    @ApiModelProperty(value = "结果对象")
    private T data;

}
